#ifndef __Shader_Water_H__
#define __Shader_Water_H__

#include "d3dheaders.h"
#include "video/Shader.h"

namespace KEngine
{

class Camera;
class Water;
class ShaderWater : public Shader
{
public:
	ShaderWater(Water* water);
	~ShaderWater();
	
	void update(TimeValue t);

protected:
	virtual void renderImp(Camera* camera);
	virtual bool initialize();

protected:
	D3DXHANDLE mTechnique;
	D3DXHANDLE mWaveTexture;
	D3DXHANDLE mEnvTexture;
	D3DXHANDLE mTime;
	D3DXHANDLE mViewProj;
	D3DXHANDLE mWorldViewProj;

	TimeValue mCurrentTime;
	TimeValue mStartTime;

	Water* mWater;
};

}

#endif 